//关于router的配置文件
import {createRouter, createWebHistory} from "vue-router"
export const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path:"/",
            component: () => import("@/views/home.vue")

        },
        {
            path:"/details",
            component: () => import("@/views/details.vue")
        },
        {
            path:"/shoppingCar",
            component: () => import("@/views/shoppingCar.vue")
        },
        {
            path:"/gameslist",
            component: () => import("@/views/gameslist.vue")
        },
        {
            path:"/login",
            component: () => import("@/components/home/login.vue")
        },
        {
            path:"/account",
            component: () => import("@/views/account.vue")
        },

        {
            path:"/gameStore",
            component: () => import("@/views/gameStore.vue")
        },
        {
            path:"/pay",
            component: () => import("@/views/pay.vue")
        },
        {
            path:"/user",
            component: () => import("@/views/user.vue")
        }

    ]
})